﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using OgilvyOne.Model;

namespace OgilvyOne.IDAL
{
    public interface IQuestionsManage
    {
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        bool Exists(int FAQ_ID);
        /// <summary>
        /// 增加一条数据
        /// </summary>
        int Add(QuestionsManageModel model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        bool Update(QuestionsManageModel model);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool Delete(int FAQ_ID);
        bool DeleteList(string FAQ_IDlist);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        QuestionsManageModel GetModel(int FAQ_ID);
        /// <summary>
        /// 获得数据列表
        /// </summary>
        DataSet GetList(string strWhere);
        /// <summary>
        /// 获得前几行数据
        /// </summary>
        DataSet GetList(int Top, string strWhere, string filedOrder);
        /// <summary>
        /// 根据分页获得数据列表
        /// </summary>
        List<QuestionsManageModel> GetPagedQuestions(int pageIndex, int pageSize, out int rowCount);
        #endregion  成员方法
    } 
}
